<?php
/*
 * 举报用户
 */

namespace App\Jobs\Content;

use App\Jobs\Job;
use Carbon\Carbon;

class ReportUserJob extends Job
{
    protected $data;

    public function __construct($data = [])
    {
        $this->data = [
            'key_id'          => $data['key_id'] ?? 0,
            'app_id'          => env('CONTENT_APP_ID'),
            'user_id'         => $data['user_id'] ?? 0,
            'report_user_id'  => $data['report_user'] ?? 0,
            'report_type'     => $data['type_name'] ?? '',
            'desc'            => $data['remark'] ?? '',
            'picture'         => $data['picture'] ?? '',
            'content_name'    => $data['content_name'] ?? '',
            'add_time'        => $data['add_time'] ?? Carbon::now(),
        ];
    }
}
